"""Added BotSettings

Revision ID: fffdd67fa0eb
Revises: af8f63862066
Create Date: 2024-01-17 18:15:33.020178

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "fffdd67fa0eb"
down_revision = "af8f63862066"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "bot_settings",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("is_bot_enabled", sa.Boolean(), server_default=sa.text("true"), nullable=False),
        sa.Column("bot_disabled_until", sa.DateTime(), nullable=True),
        sa.Column("created_at", sa.DateTime(), server_default=sa.text("now()"), nullable=True),
        sa.Column("updated_at", sa.DateTime(), server_default=sa.text("now()"), nullable=True),
        sa.PrimaryKeyConstraint("id", name=op.f("pk_bot_settings")),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table("bot_settings")
    # ### end Alembic commands ###
